# 用模求偶数
j = 0
for i in range(1, 101):
    if i % 2 == 0:
        j += i
print(j)

# 用步长为2来取偶数求和
k = 0
for l in range(0, 101, 2):
    k += l
print(k)